<%@ page language="java" import="java.util.*,com.beans.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
	MemberInfo user=(MemberInfo)session.getAttribute("user");
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>" />
<title>订单列表</title>
<link  rel="stylesheet" type="text/css" href="css/basestyle.css"></link>
<script type="text/javascript" src="../JS/jsonrpc.js"></script>
</head>
<body >
<div id="div_content">
<jsp:include page='<%= user==null?"../top.jsp":"../top_login.jsp" %>'></jsp:include>
<table id="maintable">

  <tr>
    <td>&nbsp;</td>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><br>
		<TABLE width="96%" border=0 align="center" cellPadding=0 cellSpacing=0 class="C_Goods_Title">			
			<TR>
			  <TD class="first_td"><IMG hspace=5 src="images/NewGoods_06.gif"></TD>
			  </TR>
          </TABLE>
          <table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#F7F3F7">
            <tr bgcolor="#F7F3F7" valign="middle" align="center">
              <td height="30" class="blackTitle">订单号</td>
              <td height="30" class="blackTitle">订单金额</td>
              <td height="30" class="blackTitle">订单状态</td>
              <td height="30" class="blackTitle">下单日期</td>
              <td height="30" class="blackTitle">基本操作</td>
            </tr>
       
       <c:if test='${fn:length(orderList)==0}'>
       		<tr>
       			<td width="48%" height="35" align="center" class="order_total" colspan="5">			 
					<span id="totalMoney">没有查询到符合条件的订单信息!</span>
					<br><br>
			   </td>
		    </tr>
       </c:if>
            <c:forEach var="order" items="${orderList}" varStatus="userSearchOrderInJspLoop">
					<tr valign="middle" bgcolor="#FFFFFF"  align="center">
					  <td width="" align="center" >
							${order.orderNo}
						  <br>
					  </td>
					  <td width="" class="redText">
						${order.amount}元
					  <br>
					  </td>
					  <td width="" class="text">
						${order.orderState} 
					  <br>
					  </td>
					  <td width="" class="text">
							${order.orderDate}  
						  <br>
					  </td>
					  <td width="">
						<br/><a href="${pageContext.request.contextPath }/order/orderGoodsList.jsp?orderId=${order.id}"><img src="${pageContext.request.contextPath }/images/icon_car.gif" border=0></a><br>
					  <br></td>
					</tr>
					<tr>
					  <td colspan="4" height="2" bgcolor="#F7F3F7"><br></td>
					</tr>
					</c:forEach>

          </table></td>
      </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3">&nbsp;</td>
  </tr>
</table>
	<%@ include file="../bottom.jsp" %>
</div>

</body>

</html>
